package com.lsh.payment.core.strategy.query;

import com.alibaba.fastjson.JSON;
import com.lsh.payment.core.constant.BusinessConstant;
import com.lsh.payment.core.strategy.vo.dmallpay.DMallQueryResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Project Name: lsh-payment
 * Created by panxudong on 17/11/14.
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
@Component
public class DMallQueryStrategy implements QueryStrategy<DMallQueryResponse> {

    private static Logger logger = LoggerFactory.getLogger(DMallQueryStrategy.class);

    @Override
    public int getStrategyNo() {
        return BusinessConstant.DMALLQUERY;
    }

    /**
     * 查询第三方支付状态
     *
     * @param paramMap 查询参数
     * @return
     */
    @Override
    public DMallQueryResponse queryPayStatusByParams(Map<String, Object> paramMap) {
        DMallQueryResponse dMallQueryResponse = new DMallQueryResponse();

        logger.info("查询请求多点,参数:");

        logger.info("多点查询返回:" + JSON.toJSONString(dMallQueryResponse));

        return dMallQueryResponse;
    }

}
